home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctj8508.arc
/
TRIG.PLI
< prev
next >
Wrap
Text File
|
1986-09-14
|
896b
|
38 lines
/* procedure trig */
/* translated by Robert Barnes from Pascal version */
trig:proc options(main);
dcl tans(100) float;
dcl (r,t) bin fixed,
ch char(1);
put skip edit('starting tangent calculations ..')(skip,a);
call puttime;
do t = 1 to 100;
do r = 1 to 100;
tans(r)=sin(r)/cos(r);
end;
end;
put edit('..all done!')(skip,a);
call puttime;
puttime: procedure;
declare gettime entry(ptr,ptr,ptr,ptr);
declare (hour,min,sec,fraction) fixed(7);
call gettime(addr(hour),addr(min),addr(sec),addr(fraction));
put skip list('The time is now ');
put edit(hour,':',min,':',sec,'.',fraction)
(f(2),a,f(2),a,f(2),a,f(2));
end puttime;
end trig;